<?php

class ErrorController extends Zend_Controller_Action {
	
	public function init() {
		parent::init();
		$this->_helper->Layout->setLayout("error");
	}

	public function errorAction() {
		$errors = $this->_getParam('error_handler');

        switch ($errors->type) {
			default:
				$exception = $errors->exception;
				$this->view->msg = get_class($exception) . ': ' . $exception->getMessage();
				var_dump($exception->getTrace());
				break;
		}

	}
}
